import {getRequest, postRequest, putRequest, deleteRequest, uploadFileRequest,postRequest2} from '@/utils/api';


export const getUserInfo = data => postRequest('/user/user', data);

/**
 * 验证用户是否具有数据源管理-编辑权限
 * @param data
 * @returns {*}
 */
export const verificateDataSourceEdit = () => postRequest2('/datasource/VerificateDataSourceEdit');

/**
 * 验证用户是否具有报表管理新增或者编辑权限
 * @returns {*}
 */
export const verificateReportMangerEditOrAdd = () => postRequest2('/pression/verificateReportMangerEditOrAdd');

/**
 * 验证用户是否能打开权限弹窗
 * @returns {*}
 */
export const verificateReportMangerPression = () => postRequest2('/pression/verificateReportMangerPression');
